package com.study.tests;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import org.testng.annotations.Test;
import com.study.framework.Folders;

public class FolderRemovalTest extends TestBase {

	@Test
	public void testFolderRemoval() {
		Folders oldFolders = app.getFolderHelper().getFolders();
		app.getFolderHelper().deleteFolder();
		Folders newFolders = app.getFolderHelper().getFolders();
		assertThat(newFolders, equalTo(oldFolders.withRemovedFolder()));
	}
}
